package xyz.heyaoshare.utils.captcha;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 校验码 BO
 * @author YueHe
 * @version 0.0.1
 * @since 2025/6/25 上午10:38
 */
@Data
@AllArgsConstructor
@Schema(description = "验证码对象")
public class CaptchaBO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "唯一标识")
    private String key;

    @Schema(description = "验证码图片")
    private String image;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @Schema(description = "验证码文本")
    private String text;

}